Using the library reference and its syntax
The library reference of the →project manages the →libraries installed within the project. Thus, libraries and their elements can no longer be manipulated within Neuron Power Engineer. For instance, it is no longer possible to delete system blocks from a system library by mistake.
Modifications of the library reference are not needed by default. Usually, you do not edit the library reference of a project. Reason: The content of the library reference is automatically adapted, if you are installing or removing libraries within the properties of the project. Only if you need to store a library outside the library providers, you have to adapt the content of the library reference. This requires some knowledge of the syntax of the library reference. |
This article contains the appropriate information so that you are able to edit the library reference:
In this article: |
---|
Displaying library reference
By default, the library reference is not visible within the project explorer. Have the library reference displayed as follows:
Click in toolbar of the project explorer and select Filters and Customization... In the dialog, uncheck Library reference file (under Filter) and click OK.
Result: The library refence libraries
(shown with icon ) is displayed within the project explorer.
No manipulations, such as deleting/renaming Avoid manipulations of the library reference within the project explorer, such as deleting or renaming the object. If you do nevertheless, Neuron Power Engineer does not find the blocks any longer. Neuron Power Engineer informs you that the library cannot be installed. |
Representation/actions within editor for the library reference
-
The contents of the library reference is displayed within an editor similar to the ST-editor. Subsequently, you are able to use the features of the ST-editor (e.g. content assist) within the editor for the library reference as well.
-
You are able to apply the actions within ST-editor to a large part within the editor for the library reference. Just select a command within the the library reference. If the result is not to your liking, undo the action (menu Edit, Undo).
-
However, the editor for the library reference supports a different syntax than the ST-editor. See the following section for the correct syntax within the editor for the library reference.
Syntax for the library reference
Syntax |
---|
|
Meaning | ||||||
---|---|---|---|---|---|---|
list of the →libraries that are installed in the project – The following keywords
|
The following library references means that the system libraries System
(with version 2.0.16) and Standard
(with version 3.2.3) have been installed in the project. Moreover, the libraries com.Musterfirma.Controller
and com.MyCompany.MyLib2
(both with version 1.1.0) are installed in the project – however, both libraries are not searched for in the usual source of the library provider but in the project subfolder MyLibraries
or in the absolute path c:\tmp\
.
Example |
---|
|
Hiding library reference
Restore the default configuration of Neuron Power Engineer by hiding the library reference in the project explorer again:
-
Click in toolbar of the project explorer and select Filters and Customization... In the dialog, check Library reference file (under Filter) and click OK.
Checking the project with the changed library reference
-
Open the properties of the project, then go to the group Library and Libraries. There, check the following:
-
Is the check box in column Install selected for the library? If this is not the case, the library has not been installed at all.
-
Which settings are displayed in the other columns? The column Source for this library must display the path that you defined under
SOURCE
. If this is not the case, the library has been installed from the source of the displayed library provider or not at all.
See "List of libraries provided or installed for a project" about the meaning of the columns or possibly displayed icons.
-
-
Also check the content of the Error Log and Problems views whether there are errors reported on the libraries for the project. If yes, fix them.